#!/usr/bin/env python
"""
# -*- coding: utf-8 -*-
# @Time    : 2020/10/6 13:12
# @Author  : AshJo
# @Desc    : 多进程模拟socketserver-客户端
# @Filename: client.py
# @Version : v1.0
"""
import socket
import time
sk = socket.socket()
sk.connect(('127.0.0.1', 9000))

while True:
    sk.send(b'hello world!')
    content = sk.recv(1024).decode('utf-8')
    print(content)
    time.sleep(1)
